<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%hospital}}".
 *
 * @property integer $id
 * @property integer $u_id
 * @property string $name
 * @property string $head_pic
 * @property string $live_pic
 * @property string $introduce
 * @property string $credentials
 * @property string $phone
 * @property string $address
 * @property string $pre_fee
 * @property string $total_fee
 * @property string $alipay
 * @property integer $status
 * @property integer $score
 * @property integer $booking_times
 * @property integer $follow_numbers
 */
class Hospital extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%hospital}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'name'], 'required'],
            [['id', 'u_id', 'status', 'score', 'booking_times', 'follow_numbers'], 'integer'],
            [['introduce'], 'string'],
            [['name'], 'string', 'max' => 50],
            [['head_pic', 'live_pic', 'credentials', 'phone', 'address', 'pre_fee', 'total_fee', 'alipay'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'u_id' => 'U ID',
            'name' => 'Name',
            'head_pic' => 'Head Pic',
            'live_pic' => 'Live Pic',
            'introduce' => 'Introduce',
            'credentials' => 'Credentials',
            'phone' => 'Phone',
            'address' => 'Address',
            'pre_fee' => 'Pre Fee',
            'total_fee' => 'Total Fee',
            'alipay' => 'Alipay',
            'status' => 'Status',
            'score' => 'Score',
            'booking_times' => 'Booking Times',
            'follow_numbers' => 'Follow Numbers',
        ];
    }
}
